package com.boot.dog.service;

import com.boot.dog.common.util.ApiResult;
import com.boot.dog.entities.pojo.Area;
import com.boot.dog.entities.vo.Area4ChildVo;
import com.boot.dog.entities.vo.AreaVo;

import java.util.List;
import java.util.Map;

/**
 * @Author: MaxLv
 * @Date: 2020/1/16
 */
public interface AreaService {

    ApiResult<Void> saveArea(Area area);

    ApiResult<Void> editArea(Area area);

    ApiResult<Void> delById(Integer id);

    ApiResult<List<Area>> searchArea(String title);

    Map<Integer, List<Integer>> currUserArea();

    ApiResult<List<Area>> getAreaByParentId(Integer parentId, Integer level);

    ApiResult<List<Area4ChildVo>> getArea4Search(Integer parentId, Integer level);

    ApiResult<List<Area>> getAllArea();
}
